import request from './request'
//登录请求
export const LoginApi =(params) =>request.post('/admin/auth/login',params)
//获取用户信息
export const getUserByToken = (data) => request.post('/admin/auth/getUserByToken', data)
//查询商品接口
export const getAdminGoods = (params)=>request.get('/admin/goods',{params})
//查询分类
export const getAdminCategory = (params)=>request.get('/admin/category',{params})
//品牌管理
export const getAdminBrand = (params)=>request.get('/admin/brand',{params})
//商品属性
export const getAdminAttribute = (params)=>request.get('/admin/attribute',{params})
//其他
export const getAdminOrder = (params)=>request.get('/admin/order',{params})
//专题管理列表
export const getAdminTopic = (params)=>request.get('/admin/topic',{params})
//图片上传
export const postPutimg =(params)=>request.post('admin/upload/goodNewPic',params)
//新增商品
export const postAddGoods=(params)=>request.post('/admin/goods/store',params)
//商品详情
export const getGoodsDetails=(params)=>request.get('/admin/goods/info',{params})
//上级分类
export const getTopCategory = (params)=>request.get('/admin/category/topCategory',{params})
//分类编辑
export const postAddcategory=(params)=>request.post('/admin/category/store',params)
//分类分类详情
export const postAddcategoryInfo=(params)=>request.get('/admin/category/info',{params})
//品牌添加,编辑
export const postAddbrand=(params)=>request.post('/admin/brand/store',params)
//品牌详情
export const postAddbrandInfo=(params)=>request.get('admin/brand/info',{params})
//属性添加,编辑
export const postAddattribute=(params)=>request.post('/admin/attribute/store',params)
//属性详情
export const postAddattributeInfo=(params)=>request.get('/admin/attribute/info',{params})
//专题添加,编辑
export const postAddtopic=(params)=>request.post('/admin/topic/store',params)
//专题详情
export const postAddtopicInfo=(params)=>request.get('/admin/topic/info',{params})